package com.qf.utils;

import cn.hutool.core.io.FileUtil;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

/**
 * @Author: gcr
 * @Date: 2023/8/22 17:31
 */
public class Test {
    public static void main(String[] args) {
        String s = FileUtil.readUtf8String("E:\\WebstormProjects\\广州医资源门户前台\\3333.html");
        Document parse = Jsoup.parse(s);
        String html = parse.text();
        Elements img = parse.select("img");
        for (Element element : img) {
            System.out.println("https://library.samsph.com/" + element.attr("src"));
        }


    }
}
